package com.example.demo.ProxyMode;

/**
 * 场景类
 */
public class Client {

    public static void main(String[] args) {
//        IGamePlayer user = new GamePlayer("张三");
//        user.login("zhangsan","123");
//        user.killBoss();
//        user.upgrade();

//        IGamePlayer user = new GamePlayer("张三");
//        GamePlayerProxy gamePlayerProxy = new GamePlayerProxy(user);
//        gamePlayerProxy.login("zhangsan","123");
//        gamePlayerProxy.killBoss();
//        gamePlayerProxy.upgrade();

        GamePlayerProxy proxy = new GamePlayerProxy("张三");
        proxy.login("zhangsan","123");
        proxy.killBoss();
        proxy.upgrade();
    }
}
